<?php
/**
 * 
 * @author guibinyu
 * @date 2017-06-15 04:14:50
 */
class User   
{
    
   private $Wechat;
   public function __construct($Wechat)
    {
        $this->Wechat = $Wechat;
    }
    /**
     * 获取关注者的信息
     */
    public function getUserInfo()
    {
        $openId = isset($_POST['param']) ? $_POST['param'] : 'oYVyYw2BzLX8eJ1I-oCDSN6z4avI';
        $result = $this->Wechat->User->getUserInfo($openId);
        return $result;
    }
     /**
     * 获取关注者的信息
     */
    public function getUserList()
    {
        $next_openid = isset($_POST['param']) ? $_POST['param'] : '';
        $result = $this->Wechat->User->getUserList($next_openid);
        return $result;
    }
    public function __call($name, $arguments)
    {
        exit("Test does not have [{$name}] method !");
    }
     
     
//index, view, create, update, delete, options
}